package org.nobody.mallb2c.mallproduct.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-08-9:42
 *
 * 二级分类vo
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
  private String catalog1Id; //1级父分类id
  private List<Catelog3Vo> catalog3List; //三级子分类
  private String name; //二级分类的名字
  private String id; //这个二级分类对应的id

  /**
   * 三级分类vo
   */
  @NoArgsConstructor
  @AllArgsConstructor
  @Data
  public static class Catelog3Vo{
    private String catalog2Id; //父分类,即二级分类id
    private String id;
    private String name;
  }
}
